/* 分析页面特定样式 */
.analysis-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.date-range {
    display: flex;
    gap: 10px;
}

.custom-range {
    display: flex;
    align-items: center;
    gap: 10px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    position: relative;
    padding: 25px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: all 0.3s;
}

.stat-card i {
    font-size: 24px;
    color: #3498db;
    margin-bottom: 15px;
}

.stat-trend {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.stat-trend.up {
    color: #2ecc71;
}

.stat-trend.down {
    color: #e74c3c;
}

.analysis-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.chart-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.chart-title {
    font-size: 18px;
    font-weight: 500;
    color: #2c3e50;
    margin: 0;
}

.chart-actions {
    display: flex;
    gap: 10px;
}

.problem-list {
    margin-top: 20px;
}

.problem-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.problem-name {
    width: 150px;
    font-size: 14px;
    color: #2c3e50;
}

.problem-bar {
    flex: 1;
    height: 8px;
    background: #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
}

.problem-bar .bar {
    height: 100%;
    background: #3498db;
    border-radius: 4px;
    transition: width 0.3s;
    text-align: right;
    font-size: 12px;
    color: white;
    padding-right: 5px;
}

.detailed-analysis {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-top: 40px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.analysis-tabs {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.tab-btn {
    padding: 10px 20px;
    border: none;
    background: none;
    color: #7f8c8d;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s;
}

.tab-btn.active {
    color: #3498db;
    border-bottom: 2px solid #3498db;
}

.analysis-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.analysis-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.analysis-list li i {
    font-size: 18px;
}

.analysis-list li i.fa-check-circle {
    color: #2ecc71;
}

.analysis-list li i.fa-exclamation-circle {
    color: #f1c40f;
}

/* 动画效果 */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chart-card {
    animation: slideIn 0.5s ease-out;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .analysis-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .analysis-header {
        flex-direction: column;
        gap: 20px;
    }
    
    .date-range {
        width: 100%;
        overflow-x: auto;
    }
} 